<?php

class Recursos_Form_Permissao extends Zend_Form
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    	    	   	
    }
    
    public function setElementSend(){
    	$enviar = new Zend_Form_Element_Submit("submit");
    	$enviar->setIgnore(true)
    	->setLabel("Atualizar")
    	->removeDecorator('HtmlTag');
    
    	$token = new Zend_Form_Element_Hash('token');
    	$token->setSalt('s4a1t-53gur0')
    	->setTimeout(300)
    	->setIgnore(true)
    	->removeDecorator('HtmlTag')
    	->removeDecorator('Label')
    	->addErrorMessage(_('Token provided did not match, session expired. Please reload the form.'));
    	;
    	$this->addElements(array($enviar, $token));
    }


}

